import React, {Component} from 'react'
import ModifyArticleList from "../../../../components/ArticleManageComponent/ModifyArticleList";
import ArticleType from "../../../../types/ArticleType";
import {Route, Switch} from 'react-router'
import SpecificModifyArticle from '../../../../components/ArticleManageComponent/SpecificModifyArticle';

export default class ModifyDeviceKnowledge extends Component {
    render() {
        return (
            <Switch>
                <Route path='/siteManage/modifyDeviceKnowledge' exact={true}
                       render={() => (<ModifyArticleList articleType={ArticleType.KNOWLEDGE}/>)}/>
                <Route path='/siteManage/modifyDeviceKnowledge/:id' component={SpecificModifyArticle}/>
            </Switch>
        )
    }
}